package com.zbest.zpay.acctrans.common.exception;

import com.zbest.common.lang.enums.BizCode;



public class AccTransRuntimeException extends RuntimeException {
    private static final long serialVersionUID = 7616256225582655275L;

    private BizCode bizCode;

    private String message;

    /**
     * 构造器
     *
     * @param
     */
    public AccTransRuntimeException(BizCode bizCode, String message) {
        super(bizCode.name() + ":" + bizCode.code() + ":" + bizCode.desc());
        this.bizCode = bizCode;
        this.message = message;
    }

    /**
     * 构造器
     *
     * @param
     * @param e
     */
    public AccTransRuntimeException(BizCode bizCode, Throwable e) {
        super(bizCode.name() + ":" + bizCode.code() + ":" + bizCode.desc(), e);
        this.bizCode = bizCode;
    }

    /**
     * Getter method for property <tt>bizCode</tt>.
     *
     * @return property value of bizCode
     */
    public BizCode getBizCode() {
        return bizCode;
    }

    /**
     * Setter method for property <tt>bizCode</tt>.
     *
     * @param bizCode value to be assigned to property bizCode
     */
    public void setBizCode(BizCode bizCode) {
        this.bizCode = bizCode;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

}
